<%-- 
    Document   : editAccount
    Created on : Apr 28, 2011, 10:59:19 PM
    Author     : labib
--%>




<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
    	<script src="js/jquery-1.5.1.js"></script>
	<script src="js/jquery.ui.core.js"></script>
	<script src="js/jquery.ui.widget.js"></script>
	<script src="js/jquery.ui.datepicker.js"></script>
	<link rel="stylesheet" href="css/demos.css">
	<script>
	$(function() {
            
		$( "#datepicker" ).datepicker();
	});
	</script>
<logic:equal name="username" value="">
    <logic:forward name="login" />
</logic:equal>
<html:form action="signup.do?OpType=Change" enctype="multipart/form-data" enctype="multipart/form-data" onsubmit="return validateRegisterBeanForum(this);">
     <html:javascript formName="RegisterBeanForum" />
    <table border="1"> <tr><td>
     User name is </td><td>
     <html:hidden name="reg" property="userName"/>
         <html:text name="reg" property="userName" disabled="true"/></td><html:errors property="userName" /> </tr>
        <tr><td>
                Change Password</td><td> <html:text name="reg" property="password" /></td><html:errors property="password" /></tr>
    <tr><td>    
            Change Email  </td><td><html:text name="reg" property="email" /></td><html:errors property="email" /></Change FirstName  <html:text name="reg" property="firstName" /><html:errors property="firstName" /><br>
<tr><td>           
        Change LastName </td><td> <html:text name="reg" property="lastName" /></td><html:errors property="lastName" /></tr>
<tr><td>                  
        Change Birthdate</td><td><html:text name="reg" property="birthday" styleId="datepicker"/></td><html:errors property="birthday" /></tr>
<tr><td>                         
        Change Street </td><td> <html:text name="reg" property="street" /></td><html:errors property="street" /></tr>
<tr><td>                         
        Change City </td><td><html:text name="reg" property="city" /></td><html:errors property="city" /></tr>
<tr><td>                         
  <tr><td>       Change Country</td><td><html:text name="reg" property="country" /></td>><html:errors property="country" /></tr>
       
    <tr>
        <img src="<bean:write name='reg' property='imageName'/>"></img></tr>
      <tr> <td> Upload Your Image</td><td>
              <html:file property="img"/></td></tr>
        </table>
        <html:submit value="Change"></html:submit>
        
        </html:form>